package com.education.welco.pojo;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * 教师答疑表 s_answering
 *
 * @author d
 * @date 2020-05-08
 */
@Data
@JsonInclude(value = JsonInclude.Include.NON_NULL)
public class SAnswering implements Serializable {
    private static final long serialVersionUID = 1L;

    //课程编号-顶级目录id
    private Integer topCatalogId;
    //老师名称
    private String teacherName;
    //老师头像
    private String teacherImage;
    //所有的二级目录
    private List<Integer> twoIDList;
    //答疑id
    private Integer id;
    //创建时间
    private Date createTime;
    private String createTimeString;
    //问题标题
    private String problemTitle;
    //问题内容
    private String problemContent;
    //课程二级目录id
    private Integer catalogId;
    //学校id
    private Integer schoolId;
    //老师id
    private Integer userId;
    private Integer teacherId;
    //排序
    private Integer sort;
    //1显示 0不显示
    private String isdisplay;
    //访问量
    private Integer total;

    private Integer commentNum;
    //点赞数
    private Integer fabulous;
    //课程名称
    private String catalogName;
    //是否允许学生查看 1是 0否
    private String isStu;
    private boolean isStuBool;
    //是否同步上课资料 1同步 0不同步
    private String synch;
    private boolean synchBool;
    //课程问答集合
    private List<Integer> answerIdList = new ArrayList<>();
    private List<SAnswering> answeringList;
    private List<SAnswering> contentList;
    //关联班级
    private String classString;
    /**
     * 在授班级列表
     */
    private List<TClass> classList;
    //是否点赞  0 未点赞  1  已点赞
    private String isLike;
    /**
     * 班级凭借字符串
     */
    private String checkString;
    /**
     * 查看内容拼接字符串
     */
    private String ansTitleString;
    private boolean checked = false;
    private Integer classId;
    //用户头像
    private String image;
    //用户名称
    private String name;
    private List<SAnsweringComment> children = new ArrayList<>();
    /**
     * 答疑时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date attendTime;
    /**
     * 答疑时间字符串类型
     */
    private String attendTimeString;
    /**
     * 结束时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;
    /**
     * 结束时间字符串类型
     */
    private String endTimeString;
    private List<Integer> Idlist;

}